<template>
  <div class="favorites-view">
    <!-- 顶部导航栏 -->
    <div class="nav-header">
      <el-button @click="goBack" type="primary" size="large">
        <el-icon><ArrowLeft /></el-icon>返回
      </el-button>
      <h2 class="page-title">我的关注</h2>
    </div>

    <!-- 收藏列表组件 -->
    <FavoritesList />
  </div>
</template>

<script setup>
import { useRouter } from 'vue-router'
import { ArrowLeft } from '@element-plus/icons-vue'
import FavoritesList from '@/components/FavoritesList.vue'

const router = useRouter()

const goBack = () => {
  router.back()
}
</script>

<style scoped>
.favorites-view {
  min-height: 100vh;
  background: #f5f5f5;
}

.nav-header {
  padding: 16px;
  background: white;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-title {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
}
</style> 